<?php 
class AuthController extends Controller{
	public function __construct(){
		parent::__construct();
		if(!$this->checkUser()){
			$this->error('请登录后操作',U("Admin/Login/login"));
			exit;
		}
	}

	public function checkUser(){
		return isset($_SESSION['user']) && isset($_SESSION['user']['uid']);
	}
}

?>